class CreateModelos < ActiveRecord::Migration
  def self.up
    create_table :modelos do |t|
      t.column :nome, :string, :null => false, :unique => true
      t.column :marca_id, :integer, :null => false
      t.column :tipo_id, :integer, :null => false
      t.column :categoria_id, :integer, :null => false
    end
  end

  def self.down
    drop_table :modelos
  end
end
